﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DJY.Domain.Entity.WorkFlow
{
    /// <summary>
    /// 工作流节点 实体
    /// </summary>
    public class WFNodeEntity
    {
        /// <summary>
        /// 节点id
        /// </summary>
        [Key]
		[StringLength(36)]
    	public string Id
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 流程定义ID
        /// </summary>
		[StringLength(36)]
    	public string WFID
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 版本号
        /// </summary>
    	public int Version
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 节点类型：1任务，2审核，4会签
        /// </summary>
    	public int NodeType
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 节点名称
        /// </summary>
		[StringLength(100)]
    	public string Name
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 备注
        /// </summary>
		[StringLength(200)]
    	public string Remark
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 坐标大小(x,y,width,height)
        /// </summary>
		[StringLength(50)]
    	public string Rectangle
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 说明
        /// </summary>
		[StringLength(500)]
    	public string Comment
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 业务页面
        /// </summary>
		[StringLength(255)]
    	public string BusinessUrl
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 审核页面
        /// </summary>
		[StringLength(255)]
    	public string AuditUrl
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 业务模型
        /// </summary>
		[StringLength(255)]
    	public string ModelKey
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 删除标记
        /// </summary>
    	public bool F_DeleteMark
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 新增时间
        /// </summary>
    	public DateTime F_CreateTime
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 新增人
        /// </summary>
		[StringLength(36)]
    	public string F_CreateUser
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 最后修改时间
        /// </summary>
    	public DateTime? F_LastUpdateTime
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 最后修改人
        /// </summary>
		[StringLength(36)]
    	public string F_LastUpdateUser
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 开始事件
        /// </summary>
		[StringLength(200)]
    	public string Before
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 结束事件
        /// </summary>
		[StringLength(200)]
    	public string After
    	{
    		get;
    		set;
    	}

        /// <summary>
        /// 节点编码
        /// </summary>
		[StringLength(200)]
        public string Code
        {
            get;
            set;
        }

    }
}
